﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TextToSpeechEngine
{
    class WordRepresentation
    {
        public WordRepresentation()
        {
            phonemeIDs = new List<int>();
        }

        //fields
        private string word;
        private List<int> phonemeIDs;

        public string Word
        {
            get { return word; }
            set { word = value; }
        }

        public List<int> PhonemeIDs
        {
            get {
                List<int> phonemeIDsCopy = new List<int>();

                foreach (int phonemeID in phonemeIDs)
                {
                    phonemeIDsCopy.Add(phonemeID);
                }

                return phonemeIDsCopy;
            }
            set {
                phonemeIDs.Clear();

                foreach (int phonemeID in value)
                {
                    phonemeIDs.Add(phonemeID);
                }            
            }
        }
    }
}
